var status = -1;

function start(c, b, a) {
    qm.forceStartQuest();
    qm.dispose()
}

function end(c, b, a) {
    status++;
    if (status == 0) {
        qm.sendNormalTalk("木材全部搜集到了吗？", 0, 1510005, false, true)
    } else {
        if (status == 1) {
            qm.forceCompleteQuest(32163);
            qm.forceCompleteQuest(32164);
            qm.forceCompleteQuest(32165);
            qm.forceCompleteQuest(32166);
            qm.gainExp(52270);
            qm.sendNormalTalk("谢谢你，勇士。看样子你对乘船有点天赋，我这下放心了。\r\n\r\n#b(和弗坦对话，开始执行正式的任务。）#k", 0, 1510005, true, false);
            qm.gainItem(4030022, -3);
            qm.dispose()
        }
    }
};